﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DCTEDU_/Admin.Master" AutoEventWireup="true"
    CodeBehind="QLCauHinh.aspx.cs" Inherits="UserKTXD.DCTEDU_.CauHinhWeb.QLCauHinh" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HomePlaceHolder" runat="server">
    <div class="hrm_header_placeholder">
        Quản lý cấu hình</div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="padding: 10px">
                <asp:GridView ID="gridCatalog" runat="server" DataKeyNames="Id" Width="100%" BackColor="White"
                    OnRowDataBound="gridCatalog_RowDataBound" EmptyDataText="<br><center>Không tồn tại dữ liệu</center><br>"
                    BorderColor="#CCCCCC" AutoGenerateColumns="false" BorderStyle="Solid" BorderWidth="1px"
                    CellPadding="3">
                    <Columns>
                        <asp:BoundField DataField="id" Visible="false" HeaderText="id"></asp:BoundField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="STT" ItemStyle-Width="30">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            ItemStyle-Width="25%" HeaderText="Tên cấu hình">
                            <ItemTemplate>
                                <asp:HiddenField ID="H_IdCatalog" runat="server" Value='<%# Eval("Id") %>' />
                                <asp:TextBox ID="txtTenCauHinh" runat="server" Text='<%# Eval("TenCTCauHinh") %>'></asp:TextBox>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="25%" />
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            ItemStyle-Width="70%" HeaderText="Hiển thị">
                            <ItemTemplate>
                                <asp:TextBox ID="txtHienThi" TextMode="MultiLine" Height="35px" runat="server" Text='<%# Eval("NoiDung") %>'
                                    Width="98%"></asp:TextBox>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="70%" />
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#dedfdf" Font-Bold="True" ForeColor="Gray" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" HorizontalAlign="Left" ForeColor="White" />
                </asp:GridView>
            </div>
            <asp:Panel ID="Panel2" CssClass="div_footer" BackColor="#d6e6f5" runat="server" Height="24px">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <asp:ImageButton ID="cmdTaoMoi" ImageUrl="~/Images/Save.jpg" OnClick="cmdTaoMoi_Click"
                                runat="server" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
